import {httpRequest} from '@/request/https'

export default {
    /**
     * 第三方计量合同分页查询
     * */
    postThirdPage: params => httpRequest({url: '/con/conThirdParty/page', method: 'post', params}),
    /**
     * 新增第三方计量合同
     * */
    postAddThird: params => httpRequest({url: '/con/conThirdParty', method: 'post', params}),
    /**
     * 修改第三方计量合同
     * */
    putThird: params => httpRequest({url: '/con/conThirdParty', method: 'put', params}),
    /**
     * 删除第三方计量合同
     * */
    deleteThird: params => httpRequest({url: `/con/conThirdParty/${params}`, method: 'delete'}),
    /**
     * 申请第三方计量合同优秀模板
     * */
    postThirdExcellent: params => httpRequest({url: `/con/conThirdParty/excellent`, method: 'post', params}),
    /**
     * 查询第三方计量合同详情
     * */
    getThirdInfo: params => httpRequest({url: `/con/conThirdParty`, method: 'get', params}),
    /**
     * 第三方计量合同导出
     * */
    exportThird: params => httpRequest({url: `/con/conThirdParty/export`, method: 'post', params})
}
